package com.oldbss.beans;

// Generated May 26, 2013 11:19:35 PM by Hibernate Tools 3.3.0.GA

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * RoomAllocation generated by hbm2java
 */
@Entity
@Table(name = "room_allocation", catalog = "bss")
public class RoomAllocation implements java.io.Serializable {

	private Integer roomAllocationId;
	private Doms doms;
	private CheckInOut checkInOut;
	private Rooms rooms;
	private int noOfRooms;
	private int noOfDoms;
	private boolean checkedOut;
	private Date dateofstay;
	private int amount;
	private Date dateofcheckout;

	public RoomAllocation() {
	}

	public RoomAllocation(CheckInOut checkInOut, Rooms rooms, int noOfRooms,
			int noOfDoms, boolean checkedOut, Date dateofstay, int amount) {
		this.checkInOut = checkInOut;
		this.rooms = rooms;
		this.noOfRooms = noOfRooms;
		this.noOfDoms = noOfDoms;
		this.checkedOut = checkedOut;
		this.dateofstay = dateofstay;
		this.amount = amount;
	}

	public RoomAllocation(Doms doms, CheckInOut checkInOut, Rooms rooms,
			int noOfRooms, int noOfDoms, boolean checkedOut, Date dateofstay,
			int amount, Date dateofcheckout) {
		this.doms = doms;
		this.checkInOut = checkInOut;
		this.rooms = rooms;
		this.noOfRooms = noOfRooms;
		this.noOfDoms = noOfDoms;
		this.checkedOut = checkedOut;
		this.dateofstay = dateofstay;
		this.amount = amount;
		this.dateofcheckout = dateofcheckout;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "roomAllocationId", unique = true, nullable = false)
	public Integer getRoomAllocationId() {
		return this.roomAllocationId;
	}

	public void setRoomAllocationId(Integer roomAllocationId) {
		this.roomAllocationId = roomAllocationId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "domId")
	public Doms getDoms() {
		return this.doms;
	}

	public void setDoms(Doms doms) {
		this.doms = doms;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "transactionId", nullable = false)
	public CheckInOut getCheckInOut() {
		return this.checkInOut;
	}

	public void setCheckInOut(CheckInOut checkInOut) {
		this.checkInOut = checkInOut;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "roomId", nullable = false)
	public Rooms getRooms() {
		return this.rooms;
	}

	public void setRooms(Rooms rooms) {
		this.rooms = rooms;
	}

	@Column(name = "NoOfRooms", nullable = false)
	public int getNoOfRooms() {
		return this.noOfRooms;
	}

	public void setNoOfRooms(int noOfRooms) {
		this.noOfRooms = noOfRooms;
	}

	@Column(name = "NoOfDoms", nullable = false)
	public int getNoOfDoms() {
		return this.noOfDoms;
	}

	public void setNoOfDoms(int noOfDoms) {
		this.noOfDoms = noOfDoms;
	}

	@Column(name = "checkedOut", nullable = false)
	public boolean isCheckedOut() {
		return this.checkedOut;
	}

	public void setCheckedOut(boolean checkedOut) {
		this.checkedOut = checkedOut;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dateofstay", nullable = false, length = 19)
	public Date getDateofstay() {
		return this.dateofstay;
	}

	public void setDateofstay(Date dateofstay) {
		this.dateofstay = dateofstay;
	}

	@Column(name = "amount", nullable = false)
	public int getAmount() {
		return this.amount;
	}

	public void setAmount(int amount) {
		this.amount = amount;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "dateofcheckout", length = 19)
	public Date getDateofcheckout() {
		return this.dateofcheckout;
	}

	public void setDateofcheckout(Date dateofcheckout) {
		this.dateofcheckout = dateofcheckout;
	}

}
